package com.example.common.entity;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@Data
@Entity
@Table(name = "order_main")
public class OrderMain implements Serializable {
    private static final long serialVersionUID = -4401894615444346469L;

    @Id
    @Column(name = "order_no_nvarchar", columnDefinition = "varchar(255)")
    private String orderNo;
    @Column(name = "client_id_bigint", columnDefinition = "bigint(20)")
    private Long clientID;
    @Column(name = "pid_bigint", columnDefinition = "bigint(20)")
    private Long pid;
    @Column(name = "dc_id_bigint", columnDefinition = "bigint(20)")
    private Long dcId;
    @Column(name = "system_status_tinyint", columnDefinition = "bigint(20)")
    private Long systemStatus;
    @Column(name = "pay_type_tinyint", columnDefinition = "bigint(20)")
    private Integer payType;
    @Column(name = "create_time_datetime", columnDefinition = "datetime(3)")
    private Date createTime;
    @Column(name = "order_pay_time_datetime", columnDefinition = "datetime(3)")
    private Date orderPayTime;
    @Column(name = "ask_money_money", columnDefinition = "decimal(10,2)")
    private BigDecimal askMoney;
    @Column(name = "transaction_id_nvarchar", columnDefinition = "varchar(255)")
    private String transactionID;
    @Column(name = "patients_nvarchar", columnDefinition = "varchar(255)")
    private String patients;
    @Column(name = "oc_id_bigint", columnDefinition = "bigint(20)")
    private Long ocId;
    @Column(name = "a_type_int", columnDefinition = "int(11)")
    private Integer aType;
    @Column(name = "oc_status_tinyint", columnDefinition = "tinyint(1)")
    private Integer ocStatus;
    @Column(name = "patients_info_id_bigint", columnDefinition = "bigint(20)")
    private Long patientsInfoID;
    @Column(name = "receive_time_datetime", columnDefinition = "datetime(3)")
    private Date receiveTime;
    @Column(name = "receive_int", columnDefinition = "int(11)")
    private Integer receive;
    @Column(name = "to_be_receive_int", columnDefinition = "int(11)")
    private Integer toBeReceive;
    @Column(name = "is_plant_order_bit", columnDefinition = "bit")
    private Boolean isPlantOrder;    
    @Column(name = "plant_date_date", columnDefinition = "datetime(3)")
    private Date plantDate;
    @Column(name = "plant_num_int", columnDefinition = "int(11)")
    private Integer plantNum;
    @Column(name = "time_type_tinyint", columnDefinition = "tinyint")
    private Byte timeType;    
    @Column(name = "plant_period_nvarchar", columnDefinition = "varchar(20)")
    private String plantPeriod;
}
